\(\int \cosh (a+b \sqrt {c+d x}) \, dx\) [61]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 14, antiderivative size = 54 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=-\frac {2 \cosh \left (a+b \sqrt {c+d x}\right )}{b^2 d}+\frac {2 \sqrt {c+d x} \sinh \left (a+b \sqrt {c+d x}\right )}{b d} \]

[Out]

-2*cosh(a+b*(d*x+c)^(1/2))/b^2/d+2*sinh(a+b*(d*x+c)^(1/2))*(d*x+c)^(1/2)/b/d

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {5419, 5413, 3377, 2718} \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=\frac {2 \sqrt {c+d x} \sinh \left (a+b \sqrt {c+d x}\right )}{b d}-\frac {2 \cosh \left (a+b \sqrt {c+d x}\right )}{b^2 d} \]

[In]

Int[Cosh[a + b*Sqrt[c + d*x]],x]

[Out]

(-2*Cosh[a + b*Sqrt[c + d*x]])/(b^2*d) + (2*Sqrt[c + d*x]*Sinh[a + b*Sqrt[c + d*x]])/(b*d)

Rule 2718

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3377

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[(-(c + d*x)^m)*(Cos[e + f*x]/f), x]
+ Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 5413

Int[((a_.) + Cosh[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.), x_Symbol] :> Module[{k = Denominator[n]}, Dist[k, Sub
st[Int[x^(k - 1)*(a + b*Cosh[c + d*x^(k*n)])^p, x], x, x^(1/k)], x]] /; FreeQ[{a, b, c, d}, x] && FractionQ[n]
 && IntegerQ[p]

Rule 5419

Int[((a_.) + Cosh[(c_.) + (d_.)*(u_)^(n_)]*(b_.))^(p_.), x_Symbol] :> Dist[1/Coefficient[u, x, 1], Subst[Int[(
a + b*Cosh[c + d*x^n])^p, x], x, u], x] /; FreeQ[{a, b, c, d, n}, x] && IntegerQ[p] && LinearQ[u, x] && NeQ[u,
 x]

Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \cosh \left (a+b \sqrt {x}\right ) \, dx,x,c+d x\right )}{d} \\ & = \frac {2 \text {Subst}\left (\int x \cosh (a+b x) \, dx,x,\sqrt {c+d x}\right )}{d} \\ & = \frac {2 \sqrt {c+d x} \sinh \left (a+b \sqrt {c+d x}\right )}{b d}-\frac {2 \text {Subst}\left (\int \sinh (a+b x) \, dx,x,\sqrt {c+d x}\right )}{b d} \\ & = -\frac {2 \cosh \left (a+b \sqrt {c+d x}\right )}{b^2 d}+\frac {2 \sqrt {c+d x} \sinh \left (a+b \sqrt {c+d x}\right )}{b d} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.05 (sec) , antiderivative size = 50, normalized size of antiderivative = 0.93 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=\frac {2 \left (-\cosh \left (a+b \sqrt {c+d x}\right )+b \sqrt {c+d x} \sinh \left (a+b \sqrt {c+d x}\right )\right )}{b^2 d} \]

[In]

Integrate[Cosh[a + b*Sqrt[c + d*x]],x]

[Out]

(2*(-Cosh[a + b*Sqrt[c + d*x]] + b*Sqrt[c + d*x]*Sinh[a + b*Sqrt[c + d*x]]))/(b^2*d)

Maple [A] (verified)

Time = 0.01 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.17

method result size
derivativedivides \(\frac {2 \left (a +b \sqrt {d x +c}\right ) \sinh \left (a +b \sqrt {d x +c}\right )-2 \cosh \left (a +b \sqrt {d x +c}\right )-2 a \sinh \left (a +b \sqrt {d x +c}\right )}{b^{2} d}\) \(63\)
default \(\frac {2 \left (a +b \sqrt {d x +c}\right ) \sinh \left (a +b \sqrt {d x +c}\right )-2 \cosh \left (a +b \sqrt {d x +c}\right )-2 a \sinh \left (a +b \sqrt {d x +c}\right )}{b^{2} d}\) \(63\)

[In]

int(cosh(a+b*(d*x+c)^(1/2)),x,method=_RETURNVERBOSE)

[Out]

2/d/b^2*((a+b*(d*x+c)^(1/2))*sinh(a+b*(d*x+c)^(1/2))-cosh(a+b*(d*x+c)^(1/2))-a*sinh(a+b*(d*x+c)^(1/2)))

Fricas [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.81 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=\frac {2 \, {\left (\sqrt {d x + c} b \sinh \left (\sqrt {d x + c} b + a\right ) - \cosh \left (\sqrt {d x + c} b + a\right )\right )}}{b^{2} d} \]

[In]

integrate(cosh(a+b*(d*x+c)^(1/2)),x, algorithm="fricas")

[Out]

2*(sqrt(d*x + c)*b*sinh(sqrt(d*x + c)*b + a) - cosh(sqrt(d*x + c)*b + a))/(b^2*d)

Sympy [A] (verification not implemented)

Time = 0.24 (sec) , antiderivative size = 65, normalized size of antiderivative = 1.20 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=\begin {cases} x \cosh {\left (a \right )} & \text {for}\: b = 0 \wedge \left (b = 0 \vee d = 0\right ) \\x \cosh {\left (a + b \sqrt {c} \right )} & \text {for}\: d = 0 \\\frac {2 \sqrt {c + d x} \sinh {\left (a + b \sqrt {c + d x} \right )}}{b d} - \frac {2 \cosh {\left (a + b \sqrt {c + d x} \right )}}{b^{2} d} & \text {otherwise} \end {cases} \]

[In]

integrate(cosh(a+b*(d*x+c)**(1/2)),x)

[Out]

Piecewise((x*cosh(a), Eq(b, 0) & (Eq(b, 0) | Eq(d, 0))), (x*cosh(a + b*sqrt(c)), Eq(d, 0)), (2*sqrt(c + d*x)*s
inh(a + b*sqrt(c + d*x))/(b*d) - 2*cosh(a + b*sqrt(c + d*x))/(b**2*d), True))

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 110 vs. \(2 (48) = 96\).

Time = 0.19 (sec) , antiderivative size = 110, normalized size of antiderivative = 2.04 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=-\frac {b {\left (\frac {{\left ({\left (d x + c\right )} b^{2} e^{a} - 2 \, \sqrt {d x + c} b e^{a} + 2 \, e^{a}\right )} e^{\left (\sqrt {d x + c} b\right )}}{b^{3}} + \frac {{\left ({\left (d x + c\right )} b^{2} + 2 \, \sqrt {d x + c} b + 2\right )} e^{\left (-\sqrt {d x + c} b - a\right )}}{b^{3}}\right )} - 2 \, {\left (d x + c\right )} \cosh \left (\sqrt {d x + c} b + a\right )}{2 \, d} \]

[In]

integrate(cosh(a+b*(d*x+c)^(1/2)),x, algorithm="maxima")

[Out]

-1/2*(b*(((d*x + c)*b^2*e^a - 2*sqrt(d*x + c)*b*e^a + 2*e^a)*e^(sqrt(d*x + c)*b)/b^3 + ((d*x + c)*b^2 + 2*sqrt
(d*x + c)*b + 2)*e^(-sqrt(d*x + c)*b - a)/b^3) - 2*(d*x + c)*cosh(sqrt(d*x + c)*b + a))/d

Giac [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 65, normalized size of antiderivative = 1.20 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=\frac {{\left (\sqrt {d x + c} b - 1\right )} e^{\left (\sqrt {d x + c} b + a\right )}}{b^{2} d} - \frac {{\left (\sqrt {d x + c} b + 1\right )} e^{\left (-\sqrt {d x + c} b - a\right )}}{b^{2} d} \]

[In]

integrate(cosh(a+b*(d*x+c)^(1/2)),x, algorithm="giac")

[Out]

(sqrt(d*x + c)*b - 1)*e^(sqrt(d*x + c)*b + a)/(b^2*d) - (sqrt(d*x + c)*b + 1)*e^(-sqrt(d*x + c)*b - a)/(b^2*d)

Mupad [B] (verification not implemented)

Time = 1.61 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.80 \[ \int \cosh \left (a+b \sqrt {c+d x}\right ) \, dx=-\frac {2\,\left (\mathrm {cosh}\left (a+b\,\sqrt {c+d\,x}\right )-b\,\mathrm {sinh}\left (a+b\,\sqrt {c+d\,x}\right )\,\sqrt {c+d\,x}\right )}{b^2\,d} \]

[In]

int(cosh(a + b*(c + d*x)^(1/2)),x)

[Out]

-(2*(cosh(a + b*(c + d*x)^(1/2)) - b*sinh(a + b*(c + d*x)^(1/2))*(c + d*x)^(1/2)))/(b^2*d)